package com.tianxiabuyi.model.manage;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 通知表
 * Created by lujw on 2017/6/7.
 */
@Entity
@Table(name = "hospital_notice")
public class HospitalNotice extends TXBYObject {

    /**
     * 通知标题
     */
    private String title;

    /**
     * 通知内容
     */
    private String content;

    /**
     * 通知类别
     */
    private Integer category;

    /**
     * 通知等级
     */
    private Integer level;

    /**
     * 发送人
     */
    private String author;

    /**
     * 发送范围
     */
    private String receiver;

    /**
     * 图片
     */
    private String img;

    /**
     * 附件
     */
    private String attachment;

    /**
     * 操作人姓名
     */
    @Column(name = "operator_name")
    @JSONField(name = "operator_name")
    private String operatorName;

    /**
     * 操作人id
     */
    @Column(name = "operator_id")
    @JSONField(name = "operator_id")
    private Integer operatorId;

    /**
     * 通知来源 from
     */
    @Column(name = "from_client")
    @JSONField(name = "from_client")
    private String fromClient;

    /**
     * 是否可评论
     */
    @Column(name = "is_comment")
    @JSONField(name = "is_comment")
    private Integer isComment;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getFromClient() {
        return fromClient;
    }

    public void setFromClient(String fromClient) {
        this.fromClient = fromClient;
    }

    public Integer getIsComment() {
        return isComment;
    }

    public void setIsComment(Integer isComment) {
        this.isComment = isComment;
    }
}
